export default {
  dialogWidth: '80%',
  labelWidth: 200,
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  // index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  columnBtn: false,
  editBtn: true,
  excelBtn: true,
  column: [
    {
      label: "id",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "批次",
      prop: "batchId",
      type: "select",
      dicData: [],
      props: {
        label: "batchName",
        value: "id"
      },
      width:150,
      overHidden: true,
      rules: [{
        required: true,
        message: "请选择批次",
        trigger: "blur"
      }],
      hide: true,
      search: true,
    },
    {
      label: "批次名称",
      prop: "batchName",
      type: "input",
      rules: [{
        required: true,
        message: "请输入批次名称",
        trigger: "blur"
      }],
      overHidden: true,
      width: 150,
      addDisplay: false,
    },
    {
      label: "医药机构id",
      prop: "instId",
      type: "input",
      addDisplay: false,
      hide: true,
      viewDisplay: false,
      editDisabled: true,
      editDisplay: false,
      labelWidth:200,
    },
    {
      label: "医药机构名称",
      prop: "instName",
      type: "input",
      width: 100,
      hide: true,
      // editDisplay: false,
      addDisplay: false,
      editDisabled: true,
      labelWidth:200,
    },
    {
      label: "区县",
      prop: "district",
      type: "select",
      dicUrl: "/api/blade-system/dict/dictionary?code=medpur_institution",
      dataType: "number",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      hide: true,
      addDisplay: false,
      // editDisplay: false,
      editDisabled: true
    },
    {
      label: "年度",
      prop: "year",
      type: "year",
      format: "yyyy",
      valueFormat: "yyyy",
      search: true,
      rules: [{
        required: true,
        message: "请输入年度",
        trigger: "blur"
      }],
    },
    {
      label: "器械编号",
      prop: "equipmentNo",
      type: "input",
      rules: [{
        required: true,
        message: "请输入器械编号",
        trigger: "blur"
      }],
    },
    {
      label: "器械名称",
      prop: "equipmentName",
      type: "input",
      search: true,
      width:150,
      overHidden: true,
      rules: [{
        required: true,
        message: "请输入器械名称",
        trigger: "blur"
      }],
    },
    {
      label: "规格",
      prop: "specification",
      type: "input",
      rules: [{
        required: true,
        message: "请输入规格",
        trigger: "blur"
      }],
    },
    {
      label: "包装",
      prop: "packages",
      type: "input",
      rules: [{
        required: true,
        message: "请输入包装",
        trigger: "blur"
      }],
    },
    {
      label: "计价单位",
      prop: "chargeUnit",
      type: "input",
      rules: [{
        required: true,
        message: "请输入计价单位",
        trigger: "blur"
      }],
    },
    {
      label: "约定采购量基数",
      prop: "purchaseBasicNumber",
      type: "input",
      rules: [{
        required: true,
        message: "请输入约定采购量基数",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 110,
      labelWidth:200,
    },
    {
      label: "加权平均价格",
      prop: "avgPrice",
      type: "input",
      rules: [{
        required: true,
        message: "请输入加权平均价格",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 110,
      labelWidth:200,
    },
    {
      label: "中选产品约定量",
      prop: "promiseAmount",
      type: "input",
      rules: [{
        required: true,
        message: "请输入中选产品约定量",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 140,
      labelWidth:200,
    },
    {
      label: "非中选产品使用金额",
      prop: "unelectedUseFee",
      type: "input",
      rules: [{
        required: true,
        message: "请输入非中选产品使用金额",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 150,
      labelWidth:200,
    },
    {
      label: "上年度全院总用量",
      prop: "lastyearInstTotal",
      type: "input",
      rules: [{
        required: true,
        message: "请输入上年度全院总用量",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 130,
      labelWidth:200,
    },
    {
      label: "上年度全院参保患者使用量",
      prop: "lastyearSecurityUserTotal",
      type: "input",
      rules: [{
        required: true,
        message: "请输入上年度全院参保患者使用量",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 180,
      labelWidth:200,
    },
    {
      label: "中选价格",
      prop: "electedPrice",
      type: "input",
      rules: [{
        required: true,
        message: "请输入中选价格(小数)",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
    },
    {
      label: "医保资金预算",
      prop: "securityBudget",
      type: "input",
      rules: [{
        required: true,
        message: "请输入医保资金预算",
        trigger: "blur",
        pattern: /^[0-9]+(\.[0-9]+)?$/,
      }],
      width: 100,
      labelWidth:200,
    },
    {
      label: "盖章文件",
      prop: "sealFile",
      type: "upload",
      hide: true,
      listType: 'picture',
      propsHttp: {
        res: 'data',
        url: 'name',
      },
      canvasOption: {
        text: '',
        ratio: 0.1
      },
      action: '/api/blade-resource/oss/endpoint/put-file',
      rules: [{
        required: false,
        message: "请输入盖章文件",
        trigger: "blur"
      }],

    },
    {
      label: "备注",
      prop: "remark",
      type: "input",
    },
    {
      label: "参保患者使用量占比",
      prop: "securityUserRatio",
      type: "input",
      width: 150,
      hide: true,
      addDisplay: false,
      viewDisplay: false,
      editDisplay: false,
    },
    {
      label: "上年度实际支付比例",
      prop: "lastyearActualPayRatio",
      type: "input",
      addDisplay: false,
      width: 150,
      hide: true,
      viewDisplay: false,
      editDisplay: false,
      labelWidth:200,
    },
    {
      label: "结余留用比例",
      prop: "remainRatio",
      type: "input",
      width: 100,
      hide: true,
      addDisplay: false,
      viewDisplay: false,
      editDisplay: false,
      labelWidth:200,
    },
    {
      label: "考核拨付比例",
      prop: "examineAppropriateRatio",
      type: "input",
      width: 100,
      addDisplay: false,
      hide: true,
      viewDisplay: false,
      editDisplay: false,
      labelWidth:200,
    },
    {
      label: "结余测算基数",
      prop: "remainEstimateBasic",
      type: "input",
      width: 100,
      hide: true,
      editDisplay: false,
      addDisplay: false,
      labelWidth:200,
    },
    {
      label: "结余留用金额",
      prop: "remainFee",
      type: "input",
      width: 100,
      hide: true,
      editDisplay: false,
      addDisplay: false,
      labelWidth:200,
    },
    {
      label: "状态",
      prop: "status",
      type: "input",
      hide: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "更新人",
      prop: "updateUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "更新时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "删除标识",
      prop: "isDeleted",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
  ]
}
